<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%><jsp:include page="../admin.jsp"></jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>修改密码</title>
		<jsp:include page="../../../inc/css.jsp"></jsp:include>
		<jsp:include page="../../../inc/js.jsp"></jsp:include>
		<jsp:include page="../../../inc/xheditor.jsp"></jsp:include>
	</head>
	<body>
		<script type="text/javascript">
$(document).ready(function() {
	$("#save").button().click(function() {
		if ($("#oldPwd").val() == '') {
			alert('旧密码不能为空！');
			return false;
		}
		if ($("#pwd1").val() == '') {
			alert('新密码不能为空！');
			return false;
		}
		if ($("#pwd2").val() == '') {
			alert('确认密码不能为空！');
			return false;
		}
		if ($("#pwd1").val() != $("#pwd2").val()) {
			alert('新密码和确认密码不相等！');
			return false;
		}
		$('#f').ajaxSubmit(function(data) {
			alert(data);
		});
		return false;
	});
	$("#close").button().click(function() {
		window.close();
	});
});
</script>
<div style="width:100%;background-color: #ffffff">
<jsp:include page="functionPath.jsp">
	<jsp:param value="${url}" name="url"/>
</jsp:include>
		<div
			style="margin: auto; width: 300px; height: 200px; background-color: #ffffff;">
			<form action="./updateAdminPwd.do" id="f" method="post">
				<fieldset>
					<legend>
						修改密码
					</legend>
					<div>
						<label>
							旧密码：
						</label>
						<input type="password" name="oldPwd" id="oldPwd">
					</div>
					<div>
						<label>
							新密码：
						</label>
						<input type="password" name="pwd1" id="pwd1">
					</div>
					<div>
						<label>
							确认密码：
						</label>
						<input type="password" name="pwd2" id="pwd2">
					</div>
				</fieldset>
			</form>
			<center>
				<button id="save">
					保存
				</button>
				<button id="close">
					关闭
				</button>
			</center>
		</div>
</div>
	</body>
</html>
